<?php

namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * 商品和产品包的关系
 * Class PackagePriceEntity
 * @package common\entities\common
 */
class MyscrmOrganizationToPackageEntity extends ConfigEntity {

    public static function tableName() {
        return 'myscrm_organizationtopackage';
    }


    public function rules() {
        return [
            [['id', 'organization_id', 'package_id', 'contract_id', 'total_num'], 'required'],
            [['created_by', 'modified_by', 'id', 'organization_id', 'package_id', 'contract_id'], 'string', 'max' => 36],
            [['total_num'], 'integer'],
        ];
    }

    public function attributeLabels() {
        return [
            'id' => 'ID',
            'organization_id' => 'Organization ID',
            'package_id' => 'Package ID',
            'contract_id' => 'Contract ID',
            'total_num' => 'Total Num',
            'created_by' => 'Created By',
            'modified_by' => 'Modified By',
            'created_on' => 'Created On',
            'modified_on' => 'Modified By',
        ];
    }

}
